package com.yeyv.net.Web.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yeyv.net.Web.Utils.BaseYvEntity;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@TableName("account")
public class AccountEntity extends BaseYvEntity implements Serializable {
    @TableId(type = IdType.AUTO)
    private int id;

    private String account;

    private String password;

    private String state;

    private String ip;

    public String getUsername(){
        return getAccount();
    }
}
